package com.aspose.cells.b.a.g.a.a;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class zc {
   private static final Pattern a = Pattern.compile("\\(\\?<(\\w+)>");
   private Pattern b;
   private String c;
   private List<String> d;

   public static zc a(String var0, int var1) {
      return new zc(var0, var1);
   }

   private zc(String var1, int var2) {
      this.c = var1;
      this.b = b(var1, var2);
      this.d = a(var1);
   }

   public zb a(CharSequence var1) {
      return new zb(this, var1);
   }

   Pattern a() {
      return this.b;
   }

   public String[] a(CharSequence var1, int var2) {
      return this.b.split(var1, var2);
   }

   public String toString() {
      return this.c;
   }

   static List<String> a(String var0) {
      ArrayList var1 = new ArrayList();
      Matcher var2 = a.matcher(var0);

      while(var2.find()) {
         var1.add(var2.group(1));
      }

      return var1;
   }

   static Pattern b(String var0, int var1) {
      return Pattern.compile(a.matcher(var0).replaceAll("("), var1);
   }
}
